home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / sys / RCS / core.h,v.notused < prev    next >
Text File  |  1990-12-08  |  2KB  |  78 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     90.11.13.14.55.47;  author rab;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @/*    @@(#)core.h 1.18 88/08/19 SMI    */
  26.  
  27. /*
  28.  * Copyright (c) 1987 by Sun Microsystems, Inc.
  29.  */
  30.  
  31. #ifndef _sys_core_h
  32. #define _sys_core_h
  33.  
  34. #include <sys/exec.h>
  35. #include <machine/reg.h>
  36.  
  37. #define CORE_MAGIC    0x080456
  38. #define CORE_NAMELEN    16        /* Related to MAXCOMLEN in user.h */
  39.  
  40. #if defined(sun2) || defined(sun3) || defined(sun3x)
  41. /*
  42.  * The size of struct fpa_regs is changed from 141 ints in 3.0 to
  43.  * 77 ints in 3.x.  A pad of this size difference is added to struct core.
  44.  */
  45. #define CORE_PADLEN    64
  46. #endif
  47.  
  48. /*
  49.  * Format of the beginning of a `new' core file.
  50.  * The `old' core file consisted of dumping the u area.
  51.  * In the `new' core format, this structure is followed
  52.  * copies of the data and  stack segments.  Finally the user
  53.  * struct is dumped at the end of the core file for programs
  54.  * which really need to know this kind of stuff.  The length
  55.  * of this struct in the core file can be found in the
  56.  * c_len field.  When struct core is changed, c_fpstatus
  57.  * and c_fparegs should start at long word boundaries (to
  58.  * make the floating pointing signal handler run more efficiently).
  59.  */
  60. struct core {
  61.     int    c_magic;        /* Corefile magic number */
  62.     int    c_len;            /* Sizeof (struct core) */
  63.     struct    regs c_regs;        /* General purpose registers */
  64.     struct     exec c_aouthdr;        /* A.out header */
  65.     int    c_signo;        /* Killing signal, if any */
  66.     int    c_tsize;        /* Text size (bytes) */
  67.     int    c_dsize;        /* Data size (bytes) */
  68.     int    c_ssize;        /* Stack size (bytes) */
  69.     char    c_cmdname[CORE_NAMELEN + 1]; /* Command name */
  70. #ifdef FPU
  71.     struct    fpu c_fpu;        /* external FPU state */
  72. #endif
  73.     int    c_ucode;        /* Exception no. from u_code */
  74. };
  75.  
  76. #endif /*!_sys_core_h*/
  77. @
  78.